package capricornus.core
{
	import flash.system.ApplicationDomain;

	public class ClassManager
	{
		public function ClassManager()
		{
		}
		
		public static function getClassInstance( name:String ):*
		{
			return new (ApplicationDomain.currentDomain.getDefinition( name ) as Class)();
		}
			
		public static function hasDefinition( name:String ):Boolean
		{
			return ApplicationDomain.currentDomain.hasDefinition( name );
		}
	}
}